home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / renderTests / faceSetCombinations.wrl < prev    next >
Text File  |  2000-11-10  |  11KB  |  408 lines

  1. #VRML V2.0 utf8
  2.  
  3. # back left -> right
  4. # advance forwards
  5.  
  6. # 1 No appearance
  7. # 2 Empty Appearance
  8. # 3 Diffuse
  9. # 4 Diffuse + Emissive
  10. # 5 Diffuse + Transparency
  11. # 6 
  12.  
  13. DEF Camera01 Viewpoint {
  14.   position 0.0435 186 67.3
  15.   orientation 1 -0.000461 -0.000317 -1.2
  16.   fieldOfView 0.602
  17.   description "Camera01"
  18. }
  19. NavigationInfo { headlight TRUE }
  20.  
  21. DEF WORLDTRANSFORM Transform {
  22. translation 0 0 -150
  23. children [
  24.  
  25. # 1 No Appearance Box
  26. DEF NoAppBox Transform {
  27.   translation -80 0 -20
  28.   children [
  29.     Shape {
  30.       geometry IndexedFaceSet {
  31.         coord Coordinate { point [
  32.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  33.           -10 20 -10, 10 20 -10]
  34.         }
  35.         coordIndex [
  36.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  37.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  38.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  39.         }
  40.     }
  41.   ]
  42. }
  43. # 2 Empty Appearance Box
  44. DEF EmptyAppBox Transform {
  45.   translation -40 0 -20
  46.   children [
  47.     Shape {
  48.       appearance Appearance {}
  49.       geometry IndexedFaceSet {
  50.         coord Coordinate { point [
  51.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  52.           -10 20 -10, 10 20 -10]
  53.         }
  54.         coordIndex [
  55.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  56.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  57.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  58.         }
  59.     }
  60.   ]
  61. }
  62. # 3 Diffuse Shaded Box
  63. DEF DiffuseBox Transform {
  64.   translation 0 0 -20
  65.   children [
  66.     Shape {
  67.       appearance Appearance {
  68.         material Material {
  69.           diffuseColor 0.9 0.9 0.9
  70.         }
  71.       }
  72.       geometry IndexedFaceSet {
  73.         ccw TRUE
  74.         solid TRUE
  75.         coord Coordinate { point [
  76.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  77.           -10 20 -10, 10 20 -10]
  78.         }
  79.         coordIndex [
  80.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  81.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  82.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  83.         }
  84.     }
  85.   ]
  86. }
  87. # 4 Diffuse + Emissive Shaded Box
  88. DEF DiffuseEmissiveBox Transform {
  89.   translation 40 0 -20
  90.   children [
  91.     Shape {
  92.       appearance Appearance {
  93.         material Material {
  94.           diffuseColor 0 1 1
  95.           emissiveColor 1 0 0
  96.         }
  97.       }
  98.       geometry IndexedFaceSet {
  99.         ccw TRUE
  100.         solid TRUE
  101.         coord Coordinate { point [
  102.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  103.           -10 20 -10, 10 20 -10]
  104.         }
  105.         coordIndex [
  106.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  107.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  108.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  109.         }
  110.     }
  111.   ]
  112. }
  113. # 5 Diffuse  + Transparency Shaded Box
  114. DEF DiffuseTransparencyBox Transform {
  115.   translation 80 0 -20
  116.   children [
  117.     Shape {
  118.       appearance Appearance {
  119.         material Material {
  120.           diffuseColor 0.9 0.9 0.9
  121.           transparency 0.8
  122.         }
  123.       }
  124.       geometry IndexedFaceSet {
  125.         coord Coordinate { point [
  126.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  127.           -10 20 -10, 10 20 -10]
  128.         }
  129.         coordIndex [
  130.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  131.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  132.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  133.         }
  134.     }
  135.   ]
  136. }
  137. # Invalid URL Textured Box
  138. DEF InvalidURLTexturedBox Transform {
  139.   translation -80 0 20
  140.   children [
  141.     Shape {
  142.       appearance Appearance {
  143.         texture    ImageTexture {
  144.           url        "blahblahblah.jpg" # <- does not exist
  145.         }
  146.       }
  147.       geometry DEF InvalidURLTexturedBoxIFS IndexedFaceSet {
  148.         coord DEF Box03-COORD Coordinate { point [
  149.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  150.           -10 20 -10, 10 20 -10]
  151.         }
  152.         texCoord    TextureCoordinate { point [ 
  153.             0 0,  0 1,  1 1, 1 0 ]
  154.         }
  155.  
  156.         coordIndex [
  157.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  158.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  159.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  160.         
  161.         texCoordIndex    [ 
  162.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  163.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  164.             0, 1, 2, -1 0, 1, 2, -1
  165.         ]
  166.         }
  167.     }
  168.   ]
  169. }
  170. # No texCoord Textured Box
  171. DEF TexturedBox Transform {
  172.   translation -40 0 20
  173.   children [
  174.     Shape {
  175.       appearance Appearance {
  176.         texture    ImageTexture {
  177.           url        "checker.jpg"
  178.         }
  179.       }
  180.       geometry IndexedFaceSet {
  181.         coord Coordinate { point [
  182.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  183.           -10 20 -10, 10 20 -10]
  184.         }
  185.         coordIndex [
  186.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  187.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  188.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  189.         }
  190.     }
  191.   ]
  192. }
  193. # Textured Box
  194. DEF TexturedBox Transform {
  195.   translation 0 0 20
  196.   children [
  197.     Shape {
  198.       appearance Appearance {
  199.         texture    ImageTexture {
  200.           url        "checker.jpg"
  201.         }
  202.       }
  203.       geometry IndexedFaceSet {
  204.         coord Coordinate { point [
  205.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  206.           -10 20 -10, 10 20 -10]
  207.         }
  208.         texCoord TextureCoordinate { point [ 
  209.             0 0,  0 1,  1 1, 1 0 ]
  210.         }
  211.  
  212.         coordIndex [
  213.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  214.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  215.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  216.         
  217.         texCoordIndex    [ 
  218.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  219.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  220.             0, 1, 2, -1 0, 1, 2, -1
  221.         ]
  222.         }
  223.     }
  224.   ]
  225. }
  226. # Repeat Textured Box
  227. DEF RepeatTexturedBox Transform {
  228.   translation 40 0 20
  229.   children [
  230.     Shape {
  231.       appearance Appearance {
  232.         texture    ImageTexture {
  233.           url        "checker.jpg"
  234.         }
  235.       }
  236.       geometry IndexedFaceSet {
  237.         coord Coordinate { point [
  238.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  239.           -10 20 -10, 10 20 -10]
  240.         }
  241.         texCoord TextureCoordinate { point [ 
  242.             -1 -1,  -1 2,  2 2, 2 -1 ]
  243.         }
  244.  
  245.         coordIndex [
  246.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  247.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  248.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  249.         
  250.         texCoordIndex    [ 
  251.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  252.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  253.             0, 1, 2, -1 0, 1, 2, -1
  254.         ]
  255.         }
  256.     }
  257.   ]
  258. }
  259. # Clamp Textured Box
  260. DEF ClampTexturedBox Transform {
  261.   translation 80 0 20
  262.   children [
  263.     Shape {
  264.       appearance Appearance {
  265.         texture    ImageTexture {
  266.             repeatS FALSE
  267.             repeatT FALSE
  268.           url        "checker.jpg"
  269.         }
  270.       }
  271.       geometry IndexedFaceSet {
  272.         coord Coordinate { point [
  273.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  274.           -10 20 -10, 10 20 -10]
  275.         }
  276.         texCoord TextureCoordinate { point [ 
  277.             -1 -1,  -1 2,  2 2, 2 -1 ]
  278.         }
  279.  
  280.         coordIndex [
  281.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  282.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  283.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  284.         
  285.         texCoordIndex    [ 
  286.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  287.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  288.             0, 1, 2, -1 0, 1, 2, -1
  289.         ]
  290.         }
  291.     }
  292.   ]
  293. }
  294.  
  295. # Diffuse Color Modulated Textured Box
  296. DEF DiffuseColorModTexturedBox Transform {
  297.   translation 0 0 60
  298.   children [
  299.     Shape {
  300.       appearance Appearance {
  301.         material Material {
  302.             diffuseColor 1 1 1
  303.         }
  304.         texture    ImageTexture {
  305.           url        "checker.jpg"
  306.         }
  307.       }
  308.       geometry IndexedFaceSet {
  309.         coord Coordinate { point [
  310.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  311.           -10 20 -10, 10 20 -10]
  312.         }
  313.         texCoord TextureCoordinate { point [ 
  314.             0 0,  0 1,  1 1, 1 0 ]
  315.         }
  316.  
  317.         coordIndex [
  318.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  319.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  320.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  321.         
  322.         texCoordIndex    [ 
  323.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  324.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  325.             0, 1, 2, -1 0, 1, 2, -1
  326.         ]
  327.         }
  328.     }
  329.   ]
  330. }
  331. # Diffuse + Emissive Color Modulated Textured Box
  332. DEF DiffuseEmissiveColorModTexturedBox Transform {
  333.   translation 40 0 60
  334.   children [
  335.     Shape {
  336.       appearance Appearance {
  337.         material Material {
  338.             diffuseColor 1 1 1
  339.             emissiveColor 0 0.8 0
  340.         }
  341.         texture    ImageTexture {
  342.           url        "checker.jpg"
  343.         }
  344.       }
  345.       geometry IndexedFaceSet {
  346.         coord Coordinate { point [
  347.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  348.           -10 20 -10, 10 20 -10]
  349.         }
  350.         texCoord TextureCoordinate { point [ 
  351.             0 0,  0 1,  1 1, 1 0 ]
  352.         }
  353.  
  354.         coordIndex [
  355.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  356.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  357.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  358.         
  359.         texCoordIndex    [ 
  360.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  361.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  362.             0, 1, 2, -1 0, 1, 2, -1
  363.         ]
  364.         }
  365.     }
  366.   ]
  367. }
  368. # Diffuse Color Modulated With Transparency Textured Box
  369. DEF DiffuseColorModTransparencyTexturedBox Transform {
  370.   translation 80 0 60
  371.   children [
  372.     Shape {
  373.       appearance Appearance {
  374.         material Material {
  375.             diffuseColor 1 1 1
  376.             transparency 0.75
  377.         }
  378.         texture    ImageTexture {
  379.           url        "checker.jpg"
  380.         }
  381.       }
  382.       geometry IndexedFaceSet {
  383.         coord Coordinate { point [
  384.           -10 0 10, 10 0 10, -10 0 -10, 10 0 -10, -10 20 10, 10 20 10, 
  385.           -10 20 -10, 10 20 -10]
  386.         }
  387.         texCoord TextureCoordinate { point [ 
  388.             0 0,  0 1,  1 1, 1 0 ]
  389.         }
  390.  
  391.         coordIndex [
  392.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  393.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  394.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  395.         
  396.         texCoordIndex    [ 
  397.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  398.             0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1 0, 1, 2, -1
  399.             0, 1, 2, -1 0, 1, 2, -1
  400.         ]
  401.         }
  402.     }
  403.   ]
  404. }
  405.  
  406. ]
  407. }
  408.